@charset "utf-8";
@component-namespace t {
  @b dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: var(--dialog-small-width);
    line-height: 1.0;
    appearance: none;
    background-color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-normal);
    box-shadow: var(--dialog-box-shadow);
    outline: none;
    white-space: wrap;
    word-break: break-word;
    text-align: center;
    cursor: default;
    @m tomato {
      width: var(--dialog-tomato-width);
    }
    @m tiny {
      width: var(--dialog-tiny-width);
    }
    @m small {
      width: var(--dialog-small-width);
    }
    @m normal {
      width: var(--dialog-normal-width);
    }
    @m large {
      width: var(--dialog-large-width);
    }
    @m full {
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
    }
    @e wrapper {
      position: fixed -1px -1px -1px -1px;
      background-color: rgba(0, 0, 0, 0.3);
      overflow: auto;
      margin: auto;
    }
    @e header {
      position: relative;
      padding: var(--dialog-header-padding);
      @e btn-close {
        position: absolute;
        right: 0.5rem;
        top: 0.5rem;
        box-sizing: border-box;
        padding: 5px;
        border: none;
        outline: none;
        appearance: none;
        font-size: var(--dialog-header-btn-close-font-size);
        color: var(--dialog-header-btn-close-color);
        cursor: pointer;
        background-color: transparent;
        &:hover {
          color: var(--dialog-close-hover-color);
        }
      }
    }
    @e body {
      box-sizing: border-box;
      padding: var(--dialog-body-padding);
    }
    @e footer {
      box-sizing: border-box;
      padding: var(--dialog-footer-padding);
    }
  }
  .dialog-fade-enter-active {
    animation: dialog-fade-in .3s;
  }
  .dialog-fade-leave-active {
    animation: dialog-fade-out .3s;
  }
  @keyframes dialog-fade-in {
    0% {
      transform: translate3d(0, 0px, 0);
      opacity: 0;
    }
    100% {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
  }
  @keyframes dialog-fade-out {
    0% {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
    100% {
      transform: translate3d(0, 0px, 0);
      opacity: 0;
    }
  }
}